﻿using System.Collections.Generic;
using System.Threading.Tasks;
using cmdb.keede.common;
using cmdb.keede.entity;
using cmdb.keede.service.Contract;

namespace cmdb.keede.service
{

    public interface IGroupService
    {
        Task<BizResult<List<Group>>> GetGroupesAsync(int pageIndex, int pageSize);

        Task<BizResult<Group>> GetGroupAsync(int id);

        Task<BizResult<bool>> DeleteGroupAsync(int id);

        Task<BizResult<bool>> AddOrUpdateAppInfoAsync(Group group);
        Task<BizResult<bool>> AddOrUpdateAppInfoAsync(GroupRequest request);
    }
}
